package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Echart;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface EchartService {

	public Echart saveEchart(Echart echart);

	public Set<Echart> loadEcharts();

	public Set<Echart> loadReferenceEcharts(Set<Echart> echarts);

	public Set<Echart> loadEchartsByIdSet(Set<Integer> echartsId);

	public Map<String, ?> loadEchartObjectReferencedSet(Echart echart);

	public Map<String, ?> loadEchartClassReferencedSet(Echart echart);

	public void deleteEchart(Echart echart);

	public void deleteEcharts(Set<Integer> deleteEchartsId);

	public List<Echart> findAllEcharts(Integer startResult, Integer maxRows);

	public Echart findEchartByPrimaryKey(Integer id);

	public Integer countEcharts();

	public Integer countEcharts(CmiPagination page);

	public Integer countEchartsByName(String queryName);

	public Integer countEchartsByDetachedCriteria(CmiPagination page);

}
